package dev.alm.spring02aop.proxy.statics;

import dev.alm.spring02aop.calculator.MathCalculator;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Component;

@Component
public class CalculatorStaticProxy implements MathCalculator {

    @Resource
    private MathCalculator mc;

    @Override
    public int add(int a, int b) {
        System.out.println();
        int add = mc.add(a, b);
        return add;
    }

    @Override
    public int sub(int a, int b) {
        int sub = mc.sub(a, b);
        return sub;
    }

    @Override
    public int mul(int a, int b) {
        int mul = mc.mul(a, b);
        return mul;
    }

    @Override
    public int div(int a, int b) {
        int div = mc.div(a, b);
        return div;
    }

}
